package demo;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author GongXincheng
 * @since 2019-09-19 20:52
 */
public class Product {

    private List<String> list = new ArrayList<>();

    public void add(String message) {
        this.list.add(message);
    }

    public void show() {
        System.out.println(Arrays.toString(list.toArray(new String[]{})));
    }



    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }
}
